<template>
    <el-main>
        <el-main class="ep-body">
            <epl-top-bar showPerson personType="PERSON_AAC031_1" :datas="{formData: form,tableData:tableData}" psTagType="PERSON_AAB001_GROUP">
                <ep-button size="small" name="打印"></ep-button>
                <ep-button size="small" name="刷新"></ep-button>
            </epl-top-bar>
             <epl-userMessage dataType="person" idCount="2" :panel="panel" >
                  <epl-personInsurance :panel="panel"></epl-personInsurance>
            </epl-userMessage>
           

            <el-card class="ep-card">
                <ep-title>请输入变动信息</ep-title>
                 <el-form :model="form" :rules="rules" ref="form">
                    <el-row :gutter="20">
	                        <ep-select colspan="8" label="变动原因" name="aae160" :property="form.aae160" placeholder="请选择变动原因"
	                                p="R" :datas="{formData: form}" codetype="AAE160" ></ep-select>
	                        <ep-date colspan="8" label="变动日期" name="aae035" :property="form.aae035" placeholder="请选择变动日期" 
	                       		 rules="this.$localRules.DateCheck"
	                                p="R" :datas="{formData: form }" type="date" format="yyyy-MM-dd" value-format="yyyyMMdd" ></ep-date>  
                    </el-row>
                     <el-row :gutter="20">
                        <ep-textarea :rows="2"   label="备注" name="aae013" :property="form.aae013" placeholder="请输入备注" 
                                p="E" :datas="{formData: form}"></ep-textarea>
                                 </el-row>
                </el-form>
            </el-card>
            <el-card class="ep-card">
                <ep-title>险种信息</ep-title>
                <el-row>
                    <ep-table :data="tableData" border style="width: 100%;"  >
                        <ep-table-column editor="index" width="50"  header="序号">
                                        </ep-table-column>                            
                                    <ep-table-column editor="checkbox" width="55" header="选择" ></ep-table-column>  
                        <ep-table-column  editor="select" codetype="AAE140"    name="aae140" header="险种类型"></ep-table-column>
                        <ep-table-column sortable editor="text" edited  name="aac040" header="申报工资"></ep-table-column>
                        <ep-table-column sortable editor="text" edited  name="aae180" header="缴费基数"></ep-table-column>
                        <ep-table-column sortable editor="text" edited  name="aaz289" header="缴费档次"></ep-table-column>
                        <ep-table-column sortable editor="text" edited  name="aaz198" header="征收方式"></ep-table-column>
                    </ep-table>

                </el-row>
                  <div style="margin: 15px 0;"></div>
                <el-row type="flex" justify="center">
                    <ep-saveButton id="doSave" top="20" type="primary" bottom="20" ref="save" @formValidate="formValidate" :validate="['form']" 
                                :datas="{formData: form,tableData:tableData,panel:panel}" name="保存"></ep-saveButton>
                </el-row>
            </el-card>
        </el-main>
    </el-main>
</template>


<script src="../js/PsAliveStatusJS.js"></script>
